package cn.zero.model;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

@Entity
@Table(name = "t_user", indexes = { @Index(unique = true, columnList = "mobile") })
public class User extends BaseModelWithCreateTime {

	private static final long serialVersionUID = -5625153946504280293L;
	private String mobile;
	private String password;
	private Long invitorId;

	public User() {
	}

	public User(String mobile, String password, Long invitorId) {
		this();
		this.mobile = mobile;
		this.password = password;
		this.invitorId = invitorId;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public Long getInvitorId() {
		return invitorId;
	}

	public void setInvitorId(Long invitorId) {
		this.invitorId = invitorId;
	}

}
